SG Window Window Object
CallWindowProc Method

©1998 by Stinga

Properties     Methods      Events     Constants     Error Codes
Description

Calls attached window's default window procedure.

Syntax

object.CallWindowProc(ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

Part Description
object The object is expression that evaluates to Window object
msg Required. Message code
wParam Required. Message specific data
lParam Required. Message specific data
Remarks

If message is not handled by the message handler (event or callback), you must invoke CallWindowProc method and let default window procedure handle message. How and when you are going to call it depends on what you want to accomplish. In some cases you will handle message entirely in the VB code and you will not call default window procedure at all.
This method should be called only from the message event handler.

Example
Private WithEvents wnd As SGWindow.Window

Sub wnd_Message(msg As Long, wParam As Long, _
            lParam As Long, ByRef result As Long)
   
   lblText = CStr(msg)
   result = CallWindowProc(msg, wParam, lParam)
End Sub